<?php 
session_start();
if (! isset($_SESSION[ 'login' ])) {
	header("Location:login.php");
	exit;
}

include_once('libs/db.php');
include_once('libs/access_control.php');

if (!access_control(1) && !access_control(2) &&  !access_control(3)) {
	header("Location:login.php");
	exit;
}
?>
<html>
<head>
<script src='javascript\list_personas.js'></script>
<LINK href="common.css" rel="stylesheet" type="text/css">
</head>

<?php include_once('htx/header.php');?>

<div align=center style='top:200px;'>
<fieldset id='fieldset' >
<legend>Men&uacute; Principal</legend>
<br />
<table id='tbl_new' width='75%' align=center cellpadding='0' cellspacing='2px'>
<?php
   // echo ".".$_SESSION['id_tipos_libro'].".";
if (access_control(1) || access_control(2) ||  access_control(3)) {
	?>
	<tr>
		<th width='50%'><div id='opcion' onclick='location.href="lst_novedades.php"'><img height="50" src='images/book_news_sm.png' border=0 align=center />&nbsp;Registrar novedades</div></th>
		<th width='50%'><div id='opcion' onclick='location.href="lst_libros.php"'><img height="50" src='images/book_user_sm.png' border=0 align=center />&nbsp;Registrar cambio de turno</div></th>
	</tr>
	
	
	<?php } 
if (access_control(1)) {
	
	?>
    <tr>
  	    <th width='50%'  ><div  id='opcion' onclick='location.href="list_tipos_libros.php"'><img height="50" src='images/cfglibro.png' border=0 align=center />Configuracion de Libros</div></th>
  	    <th width='50%'  ><div id='opcion' onclick='location.href="list_unidades_de_medida.php"'><img height="50" src='images/cfglibro.png' border=0 align=center />ABM unidades de medida</div></th>
    </tr>
    <tr>
  	    <th width='50%'  ><div id='opcion' onclick='location.href="list_elementosAB.php"'><img height="50" src='images/cfglibro.png' border=0 align=center />ABM PSN-UT</div></th>
 	    <th width='50%'  ><div id='opcion' onclick='location.href=""'><img height="50" src='images/excel_48.gif' border=0 align=center />(En desarrollo)Importar Elementos desde xls</div></th>
    </tr>
<?php } ?>
<tr><?php 
	if (access_control(1)) {?>
	<th width='50%'  ><div id='opcion' onclick='location.href="abm_users.php"'><img height="50" src='images/user_32.png' border=0 align=center />Usuarios</div></th><?php 
	} ?>
	<?php
	if (access_control(1)) {?>
	<th width='50%'><div id='opcion' onclick='location.href="access_users.php"'><img height="50" src='images/password_32.png' border=0 align=center />Permisos de usuarios</div></th><?php 
	}?>
</tr> 
<tr><?php 
	if (access_control(1)) {?>
	<th width='50%' ></th><?php 
	} ?>
	<?php
	if (access_control(1)) {?>
	<th width='50%'><div id='opcion' onclick='location.href="access_users_libros.php"'><img height="50" src='images/password_32.png' border=0 align=center />Permisos de usuarios por libro</div></th><?php 
	}?>
</tr> 

</table>
</fieldset>
</div>
</html>